<?php exit;
//处理上传图片水印问题:
$AttachImageWatermarkSet = &GetPluginCfgNode('AttachImageWatermark');
if(!empty($AttachImageWatermarkSet) && boolval($AttachImageWatermarkSet['enable']) && isset($AttachImageWatermarkSet['WatermarkSet'])){
    $WatermarkSet = $AttachImageWatermarkSet['WatermarkSet'];
    if(!empty($WatermarkSet)){
        $WatermarkSet['DelOriImgAfterMark'] = false;
        $WatermarkSet['MarkTextFont'] = APP_PATH . 'plugin' . DIRECTORY_SEPARATOR . 'ghx_threadext' . DIRECTORY_SEPARATOR . 'static' . DIRECTORY_SEPARATOR . 'font' . DIRECTORY_SEPARATOR . 'SIMLI.TTF';
        $ThreadExtCfg = &get_plugin_config(GhxCache::getInstance()->get_share_var(VAR_GHXTD));
        $WatermarkSet['RandomFontsExclude'] = $ThreadExtCfg['FontExclude'];
        unset($ThreadExtCfg);
        $Watermarkret = image_process($WatermarkSet,$tmpfile,$tmpfile);
    }
}